from flask import Flask
from flask import request

app = Flask(__name__)

@app.route('/post_body_json',methods=['POST'])

def postbodyjson():
    data = request.get_json()
    user_name=data['userName']
    pwd = data['PWD']
    return '您好，%s!欢迎使用POST接口进行接口mock验证——POST_body_json！' % (user_name)

if __name__ == '__main__':
    app.run('127.0.0.1',5008,debug=True)